home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frmOne
- BorderStyle = 1 'Fixed Single
- Caption = "Xceed Recovery Wizard"
- ClientHeight = 4290
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 7425
- Icon = "frmOne.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- ScaleHeight = 4290
- ScaleMode = 0 'User
- ScaleWidth = 7494.262
- Begin VB.CommandButton cmdTemp
- Caption = "Restore"
- Enabled = 0 'False
- Height = 375
- Left = 4560
- TabIndex = 10
- Top = 3720
- Width = 1215
- End
- Begin VB.CommandButton cmdBrowseCatalogs
- BackColor = &H00000000&
- Caption = "..."
- Height = 255
- Left = 6840
- TabIndex = 2
- Top = 1560
- Width = 375
- End
- Begin VB.CheckBox chkNoCatalogs
- Caption = "Check this box if you no longer have the Catalogs"
- Height = 255
- Left = 1920
- TabIndex = 3
- Top = 1920
- Width = 3975
- End
- Begin VB.TextBox txtCatalogs
- Height = 285
- Left = 1920
- TabIndex = 1
- Top = 1560
- Width = 4815
- End
- Begin VB.TextBox txtBackupSet
- Height = 285
- Left = 1920
- TabIndex = 0
- Top = 840
- Width = 4815
- End
- Begin VB.CommandButton cmdCancel
- Caption = "Cancel"
- Height = 375
- Left = 6000
- TabIndex = 6
- Top = 3720
- Width = 1215
- End
- Begin VB.CommandButton cmdNext
- Caption = "Next >"
- Height = 375
- Left = 3120
- TabIndex = 4
- Top = 3720
- Width = 1215
- End
- Begin VB.CommandButton cmdPrev
- Caption = "< Previous"
- Height = 375
- Left = 1920
- TabIndex = 5
- Top = 3720
- Width = 1215
- End
- Begin VB.Line Line1
- BorderColor = &H80000011&
- Index = 0
- X1 = 1695.672
- X2 = 1695.672
- Y1 = 120
- Y2 = 4080
- End
- Begin VB.Line Line1
- BorderColor = &H80000009&
- Index = 1
- X1 = 1710.811
- X2 = 1710.811
- Y1 = 120
- Y2 = 4080
- End
- Begin VB.Label Label3
- Caption = "Step 1 of 4"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 120
- TabIndex = 11
- Top = 3840
- Width = 975
- End
- Begin VB.Image Image1
- Height = 1260
- Left = 120
- Picture = "frmOne.frx":0BC2
- Top = 120
- Width = 1410
- End
- Begin VB.Label Label2
- Caption = "Where are the catalogs files located?"
- Height = 255
- Left = 1920
- TabIndex = 9
- Top = 1320
- Width = 3135
- End
- Begin VB.Label Label1
- Caption = "Enter the name of the Backup set to restore files from."
- Height = 255
- Left = 1920
- TabIndex = 8
- Top = 600
- Width = 3975
- End
- Begin VB.Label lblOne
- Caption = "Backup set selection"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = -1 'True
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 1920
- TabIndex = 7
- Top = 120
- Width = 2895
- End
- Attribute VB_Name = "frmOne"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Dim xClass As clsXceed
- Dim ExitInc As Integer
- Public Function ShowForm(xObjects As clsXceed) As Integer
- 'This is where you will fill in the fields on your forms with the values
- 'in xObjects.
- txtBackupSet.Text = xObjects.xRestore.BackupSetName
- txtCatalogs.Text = xObjects.xMain.CatalogFolder
- Set xClass = xObjects
- Me.Left = xClass.PositionLeft
- Me.Top = xClass.PositionTop
- Me.Show vbModal
- xClass.PositionLeft = Me.Left
- xClass.PositionTop = Me.Top
- Set xClass = Nothing
- 'At this point, the form is now hidden and ExitInc contains the increment.
- 'If ExitInc is not 0 then set xObjects to the field values.
- If ExitInc <> 0 Then
- xObjects.xRestore.BackupSetName = txtBackupSet.Text
- xObjects.xMain.CatalogFolder = txtCatalogs.Text
- End If
-
- ShowForm = ExitInc
- End Function
- Private Sub chkNoCatalogs_Click()
- If chkNoCatalogs.Value = vbChecked Then
- txtCatalogs.Enabled = False
- cmdBrowseCatalogs.Enabled = False
- txtCatalogs.BackColor = &H8000000B
- Else
- txtCatalogs.Enabled = True
- txtCatalogs.BackColor = &H80000005
- cmdBrowseCatalogs.Enabled = True
- End If
- End Sub
- Private Sub cmdBrowseCatalogs_Click()
- Dim sFolder As String
- Dim bFolderSelected As Boolean
- bFolderSelected = BrowseForFolder(sFolder, "", Me.hwnd)
-
- If bFolderSelected Then
- txtCatalogs.Text = sFolder
- End If
- End Sub
- Private Sub cmdCancel_Click()
- Dim xResult As VbMsgBoxResult
- xResult = MsgBox("Your backups have not yet been restored. Cancel anyway?", vbYesNo + vbQuestion)
- If xResult = vbYes Then
- ExitInc = 0
- Me.Hide
- End If
- End Sub
- Private Sub cmdNext_Click()
- Dim Answer As VbMsgBoxResult
- If txtBackupSet.Text = "" Then
- Answer = MsgBox("You must specify a backup set name before proceeding.", vbOKOnly + vbInformation)
- Else
- If chkNoCatalogs.Value = vbChecked Then
- If frmTwo.ShowForm(xClass) = 1 Then
- Unload frmTwo
- txtCatalogs.Text = xClass.xMain.CatalogFolder
- chkNoCatalogs.Value = vbUnchecked
- ExitInc = 1
- Me.Hide
- Else
- Unload frmTwo
- End If
- Else
- ExitInc = 1
- Me.Hide
- End If
- End If
-
- End Sub
- Private Sub cmdPrev_Click()
- ExitInc = -1
- Me.Hide
- End Sub
- Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
- If UnloadMode <> vbFormCode Then
- Cancel = True
- Call cmdCancel_Click
- End If
- End Sub
-